<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2018/5/3
  Time: 14:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<style type="text/css">
    .keywords {
        width: 250px;
        font-family: '微软雅黑', sans-serif, serif;
    }
    .span_h{
        background-color: #eff0f1;display: block;height: 30px;
        font-size: 16px;
        line-height:30px;
    }

</style>

<div class="pageHeader">
    <c:if test="${cInfo.roletype=='0'&&(cInfo.fjid==''||cInfo.fjid==null)}">
        <form rel="pageForm" onsubmit="return navTabSearch(this);" action="<c:url value='/danger/info/tj/1'/>" method="post">
            <div class="searchBar">
                <table class="searchContent">
                    <tr>
                        <td class="dateRange">
                            上传时间：
                            <input type="text" value="<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>" readonly="readonly"
                                   class="date" name="start" dateFmt="yyyy-MM-dd" style="width: 100px;" id="start1">
                            <span class="limit">-</span>
                            <input type="text" value="<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>" readonly="readonly"
                                   class="date" name="end"  dateFmt="yyyy-MM-dd" style="width: 100px;" id="end1">
                        </td>
                        <td>
                            <label style="width: auto;line-height: 25px;">隐患类：</label>
                            <select class="combox" name="yhlb" id="yhlbqyfj">
                                <option value="" <c:if test="${timeChoose.data.yhlb eq '' || timeChoose.data.yhlb eq null}">selected</c:if>>请选择</option>
                                <option value="1" <c:if test="${timeChoose.data.yhlb eq 1|| timeChoose.data.yhlb eq '1'}">selected</c:if>>三合一</option>
                                <option value="2" <c:if test="${timeChoose.data.yhlb eq 2|| timeChoose.data.yhlb eq '2'}">selected</c:if>>出租房</option>
                                <option value="3" <c:if test="${timeChoose.data.yhlb eq 3|| timeChoose.data.yhlb eq '3'}">selected</c:if>>电瓶车</option>
                            </select>
                        </td>
                        <td>
                            <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                            <div class="buttonActive"><div class="buttonContent"><button type="button" onclick="exportQyForm()"> 导出</button></div></div>
                        </td>
                    </tr>
                </table>
            </div>
        </form>
    </c:if>
</div>
<div class="pageContent">
    <table class="table" width="100%" layoutH="86">
        <thead>
        <tr>
            <th width="40"  align="center">序号</th>
            <th width="120"  align="center">区</th>
            <th width="120" align="center">上报数</th>
            <th width="120" align="center">未审核</th>
            <th width="120" align="center">信息不属实</th>
            <th width="120" align="center">重复上报</th>
            <th width="120" align="center">已审核</th>
            <th width="120" align="center">流转数</th>
            <th width="120" align="center">直接整改</th>
            <th width="120" align="center">处罚后整改</th>
            <th width="120" align="center">未反馈</th>
            <th width="120" align="center">街道确认总数</th>
            <th width="120" align="center">区确认总数</th>
            <th width="120" align="center">整改率</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${list}" var="list" varStatus="state" >
            <tr>
                <td>${state.count+(pager.pageNum-1)*pager.numPerPage}</td>
                <td ><c:choose>
                    <c:when test="${list.id!='-1'}">
                        <a style="color:blue;text-decoration-line: underline;" href="<c:url value='/danger/info/tj/2'/>?id=${list.id}&yhlb=${timeChoose.data.yhlb}&start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>" target="dialog" mask="true" resizable="false"
                           width="1200" height="600" title="街道" rel="page_qy1_detail">${list.name}</a>
                    </c:when>
                    <c:otherwise>
                        ${list.name}
                    </c:otherwise>
                </c:choose></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                      href="<c:url value='/danger/info/tj/qytjDetail'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&yhlb=${timeChoose.data.yhlb}&fjid=${list.id}&conditionNum=1&deep=1"
                      target="dialog" mask="true" resizable="false"
                      width="1200" height="600" rel="page_qytj_detail1" title="上报数">${list.sbs}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/info/tj/qytjDetail'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&yhlb=${timeChoose.data.yhlb}&fjid=${list.id}&conditionNum=2&deep=1"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" rel="page_qytj_detail1" title="未审核">${list.wsh}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/info/tj/qytjDetail'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&yhlb=${timeChoose.data.yhlb}&fjid=${list.id}&conditionNum=3&deep=1"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" rel="page_qytj_detail1" title="信息不属实">${list.thsbss}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/info/tj/qytjDetail'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&yhlb=${timeChoose.data.yhlb}&fjid=${list.id}&conditionNum=4&deep=1"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" rel="page_qytj_detail1" title="重复上报">${list.thscf}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/info/tj/qytjDetail'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&yhlb=${timeChoose.data.yhlb}&fjid=${list.id}&conditionNum=5&deep=1"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" rel="page_qytj_detail1" title="已审核">${list.ysh}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/info/tj/qytjDetail'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&yhlb=${timeChoose.data.yhlb}&fjid=${list.id}&conditionNum=6&deep=1"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" rel="page_qytj_detail1" title="流转数">${list.lzs}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/info/tj/qytjDetail'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&yhlb=${timeChoose.data.yhlb}&fjid=${list.id}&conditionNum=7&deep=1"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" rel="page_qytj_detail1" title="直接整改">${list.zjzg}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/info/tj/qytjDetail'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&yhlb=${timeChoose.data.yhlb}&fjid=${list.id}&conditionNum=8&deep=1"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" rel="page_qytj_detail1" title="处罚后整改">${list.cfzg}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/info/tj/qytjDetail'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&yhlb=${timeChoose.data.yhlb}&fjid=${list.id}&conditionNum=9&deep=1"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" rel="page_qytj_detail1" title="未反馈">${list.wfk}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/info/tj/qytjDetail'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&yhlb=${timeChoose.data.yhlb}&fjid=${list.id}&conditionNum=10&deep=1"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" rel="page_qytj_detail1" title="街道确认总数">${list.jdqrs}</a></td>
                <td><a style="color:blue;text-decoration-line: underline;"
                       href="<c:url value='/danger/info/tj/qytjDetail'/>?start=<fmt:formatDate value="${timeChoose.start}" pattern="yyyy-MM-dd"/>&end=<fmt:formatDate value="${timeChoose.end}" pattern="yyyy-MM-dd"/>&yhlb=${timeChoose.data.yhlb}&fjid=${list.id}&conditionNum=11&deep=1"
                       target="dialog" mask="true" resizable="false"
                       width="1200" height="600" rel="page_qytj_detail1" title="区确认总数">${list.qqrs}</a></td>
                <td>${list.zgl}%</td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
<script type="text/javascript">
    function exportQyForm(){
        var url = "<c:url value='/danger/info/qytjExport/1'/>?start="+$("#start1").val()+"&end="+$("#end1").val()+"&yhlb="+$("#yhlbqyfj").val();
        window.open(url,"_blank");
    }
</script>
